Simple_History\WP_REST_Events_Controller A

Total Complexity 68
Dependencies 10
Dependents 1
Total lines 1,041
Lines of code 717
Logical lines of code 202
Comment lines 195
Methods 17
Properties 1

Methods 17

Method Rating Maintainability Complexity Lines of code
prepare_item_for_response()
C
31 28 107
get_items()
A
39 8 68
get_collection_params()
A
34 1 128
get_item_schema()
A
35 2 110
register_routes()
S
37 1 107
create_item()
S
48 4 37
get_item_permissions_check()
S
53 4 25
get_has_updates()
S
47 3 40
unstick_event()
S
56 3 19
stick_event()
S
56 3 19
update_item_permissions_check()
S
58 3 17
get_single_event()
S
63 2 11
get_items_permissions_check()
S
64 2 10
create_item_permissions_check()
S
80 1 3
get_collection_params_for_has_updates()
S
73 1 5
get_item()
S
70 1 6
__construct()
S
73 1 5